-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop support for old versions of Ruby #817
Conversation
7da7070
to
5b3c4a3
Compare
Drops support for Ruby 2.1 (EOL March 31, 2017) and 2.2 (EOL March 31, 2018). They're removed from `.travis.yml` and the gemspec and RuboCop configuration have also been updated to the new lower bound. Most of the diff here are minor updates to styling as required by RuboCop: * String literals are frozen by default, so the `.freeze` we had everywhere is now considered redundant. * We can now use Ruby 1.9 style hash syntax with string keys like `{ "foo": "bar" }`. * Converted a few heredocs over to use squiggly (leading whitespace removed) syntax. As discussed in Slack, I didn't drop support for Ruby 2.3 (EOL March 31, 2019) as we still have quite a few users on it. As far as I know dropping it doesn't get us access to any major syntax improvements or anything, so it's probably not a big deal.
5b3c4a3
to
9ff42b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
cc @rattrayalex-stripe. This isn't going to be merged in |
Thanks OB!
Oops, yep, good call mentioning Alex. There was quite a few lines changed in the diff here, but hopefully there will be few needed in the generation code because it's really just the same string in a whole bunch of files. |
Nice!! And yeah thanks for heads-up, as brandur noted should be trivial |
Drops support for Ruby 2.1 (EOL March 31, 2017) and 2.2 (EOL March 31,
2018). They're removed from
.travis.yml
and the gemspec and RuboCopconfiguration have also been updated to the new lower bound.
Most of the diff here are minor updates to styling as required by
RuboCop:
String literals are frozen by default, so the
.freeze
we hadeverywhere is now considered redundant.
We can now use Ruby 1.9 style hash syntax with string keys like
{ "foo": "bar" }
.Converted a few heredocs over to use squiggly (leading whitespace
removed) syntax.
As discussed in Slack, I didn't drop support for Ruby 2.3 (EOL March 31,
2019) as we still have quite a few users on it. As far as I know
dropping it doesn't get us access to any major syntax improvements or
anything, so it's probably not a big deal.
r? @ob-stripe
cc @stripe/api-libraries
Note: Targets the branch
integration-v5
in #815 instead ofmaster
.